package com.zkh360.service.message.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zkh360.service.message.domain.SysUsers;
import com.zkh360.service.message.model.SysUserVO;
import com.zkh360.service.message.mybatis.BaseMapper;

/**
 * Created by chuanxi.zhao on 18-1-19.
 */
public interface UsersMapper extends BaseMapper<SysUsers> {

    /**
     * 根据用户登录名获取密码
     *
     * @param username 用户名
     * @return 密码
     */
    public String getPasswordByUsername(String username);
    
    /**
     * 根据角色获取用户信息
     * 
     * @param roleId 角色ID
     * @param i      用户是否启用
     * @return 用户信息
     */
	public List<SysUserVO> getUserByRoleId(@Param("roleIdList") List<Long> roleIdList, @Param("enabled") Integer enabled);
	
	/**
	 * 
	 * 
	 * @param roleIdList
	 * @param sysUsers
	 * @return
	 */
	public int getUsersCount(@Param("roleIdList") List<Long> roleIdList, @Param("sysUsersVO") SysUserVO sysUsers);
}
